/*
 * 7.1.cpp
 *
 *  Created on: 2012-5-18
 *      Author: jawinton
 */

#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>

using namespace std;

#define SIZE 210

unsigned int a[SIZE];
unsigned int b[SIZE];

int main (void) {
	char a1[SIZE], b1[SIZE];
	cin >> a1 >> b1;
	int alen = strlen(a1);
	int blen = strlen(b1);
	for (int i=0; i<alen; i++)
		a[alen-i-1] = a1[i]-'0';
	for (int i=0; i<blen; i++)
		b[blen-i-1] = b1[i]-'0';
	int maxLen = max(alen, blen);
	if (maxLen > blen)
		for (int i=blen; i<maxLen; i++)
			b[i] = 0;
	if (maxLen > alen)
		for (int i=alen; i<maxLen; i++)
			a[i] = 0;
	int tmp = 0;
	for (int i=0; i<maxLen; i++) {
		int sum = a[i]+b[i]+tmp;
		a[i] = sum%10;
		if (sum >= 10) tmp = 1;
		else tmp = 0;
	}
	if (tmp == 1) {
		a[maxLen] = 1;
		cout << a[maxLen];
	}
	for (int i=maxLen-1; i>=0; i--)
		cout << a[i];
	cout << endl;
	return 0;
}
